<?php

require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_controller.php');
require_once(t3lib_extMgm::extPath('zboard') . 'class.tx_zboard_gateway.php');


class tx_zboard_controller extends tx_zlib_controller
{

    public function init()
    {
        $this->renderCss('zboard', 'css');

        // Alternativer Pfad zu View Skripten und Helfern
        $scriptPath = realpath($this->getExtConfValue('scriptPath') . 'views');
        if(is_dir($scriptPath)) {
            $this->view->addPath($scriptPath);
        }

    }

    /**
     * Siehe tslib_pibase::pi_wrapInBaseClass()
     *
     * @param string $str
     * @return string
     */
	function pi_wrapInBaseClass($str)
	{
		$content = '<div class="tx-zboard">
		'.$str.'
	</div>
	';
		return $content;
	}

}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_controller.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_controller.php']);
}
